package demo_3_oop;

public class equal {
	class x {

	}

	public static void main(String[] args) {
		// Integer a=1;
		// Integer b=1;
		Integer a = new Integer(1);
		Integer b = new Integer(1);
		System.out.println(b.getClass().getName());
		System.out.println(b instanceof Integer);
		if (a == b) {
			if (a.equals(b)) {
				System.out.println("1");
			} else {
				System.out.println("2");
			}
		} else {
			if (a.equals(b)) {
				System.out.println("3");
			} else {
				System.out.println("4");
			}

		}
	}
}
